home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Taifun
/
Taifun 265 (1993-12-10)(Manewaldt, A.)(DE)(PD)(Disk 3 of 3).zip
/
Taifun 265 (1993-12-10)(Manewaldt, A.)(DE)(PD)(Disk 3 of 3).adf
/
NoName
/
NoName.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1990-10-12
|
2KB
|
123 lines
Screen Open 0,640,512,16,Hires
Colour 1,$0
Open In 1,"Flag"
Input #1,FLAG
Close 1
Dir$="daten/"
Curs Off
Change Mouse 2
LEBEN=9
TXT$="1"
Hide On
MIDD=1
Load Iff "Titel",0
Load "musik.abk"
Music 1
Wait Key
Unpack 8 To 0
Print "Alten Spielstand laden? (J/N)"
Do
A$=Inkey$
A$=Upper$(A$)
If A$="J" Then Goto SAFEDGAME
If A$="N" Then Goto AUFBAU
Loop
AUFBAU:
Screen Open 0,640,512,16,Hires
Load Iff "screen",0
Reserve Zone 30
Rem Get Sprite Palette
Flash Off
Colour 1,$0
NR=1
B=1
X=0
For I=1 To 10
Paste Bob X,235,NR
Set Zone B,X,235 To X+35,270
X=X+35
NR=NR+1
B=B+1
Next I
Paste Bob X+35,235,23
Set Zone B,X+35,235 To X+35+35,270
For I=1 To 3
X=X+35
Next I
P=X
Paste Bob X,200,15
X=X+35
Paste Bob X,200,24
X=X+35
Paste Bob X,200,30
X=X+35
Paste Bob X,200,15
X=X+35
Paste Bob X,200,28
Set Zone B+1,P,200 To X+35,235
Paste Bob X-35*3,235,15
Paste Bob X-35*2,235,24
Paste Bob X-35,235,14
Paste Bob X,235,15
Set Zone B+2,P,235 To X+35,270
Limit Mouse 135,249 To 440,300
Show
L=35*6
M=35*3
Gosub LADEN
SCHLEIFE:
Do
C=Mouse Click
If C<>0
VM=Mouse Zone
V=VM-1
Goto VARIABEL
End If
Loop
LADEN:
Open In 1,TXT$
Input #1,A
Input #1,A$
Close 1
Print At(0,28);"Weiter bei >: "
LEBEN=LEBEN+A
If LEBEN<0 Then LEBEN=0
If LEBEN>12 Then LEBEN=12
Locate 0,10
Print A$
Print At(0,27);"St�rkepunkte: "
Print At(0,27);"St�rkepunkte:";LEBEN
TXT$=""
Return
VARIABEL:
E=E+1
If VM=12 Then E=0 : Goto XYZ
If VM=13 Then Goto SPEICHERN
If VM=0 Then E=0 : Goto SCHLEIFE
If VM=11 and MIDD=1 Then Music Stop : MIDD=0 : E=E-1 : Goto SCHLEIFE
If VM=11 and MIDD=0 Then Music 1 : MIDD=1 : E=E-1 : Goto SCHLEIFE
If V=0 and E=1 Then E=0 : Goto SCHLEIFE
If E=4 Then TXT$="" : E=1 : Print At(0,28);"Weiter bei >: "
VAR$=Str$(V)
TXT$=TXT$+VAR$-" "
WAR=Val(TXT$)
If WAR>FLAG Then TXT$="" : E=0 : Print At(0,28);"Weiter bei >: " : Goto SCHLEIFE
Print At(0,28);"Weiter bei >:";TXT$
Goto SCHLEIFE
XYZ:
Locate 0,10
A$=" "
Print A$+A$+A$+A$+A$
If LEBEN=0 Then TXT$="445"
Gosub LADEN
Goto SCHLEIFE
SPEICHERN:
Open Out 1,"0"
Print #1,LEBEN
Print #1,A$
Close 1
End
SAFEDGAME:
TXT$="0"
LEBEN=0
Goto AUFBAU